package com.assignwork.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import org.springblade.core.tool.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * VoyageWorkNodeVO
 */
@Data
@ApiModel(value = "VoyageWorkNodeVO对象", description = "船舶停时")
public class VoyageWorkNodeVO {

    /** 主键id;主键id */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键id")
    private Long id;
    
    /** 创建时间 */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    
    /** 更新时间 */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
    
    /** 航次ID */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "航次ID")
    private Long voyageId;
    
    /** 泊位key */
    @ApiModelProperty(value = "泊位key")
    private String berthKey;
    
    /** 开始时间 */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime beginTime;
    
    /** 结束时间 */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;
    
    /** 节点code */
    @ApiModelProperty(value = "节点code")
    private String nodeCode;
    
    /** 节点名称 */
    @ApiModelProperty(value = "节点名称")
    private String nodeName;
    
    /** 用时 */
    @ApiModelProperty(value = "用时")
    private BigDecimal elapsedTime;
    
    /** 是否上报 */
    @ApiModelProperty(value = "是否上报")
    private Integer isReported;
    
    /** 进、出 */
    @ApiModelProperty(value = "进、出")
    private String inOut;
    
}